# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=lfs
pkgver=2.5.0
pkgrel=0
pkgdesc="Get information on your mounted disks"
url="https://github.com/Canop/lfs"
license="MIT"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/Canop/lfs/archive/v$pkgver/lfs-$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/lfs "$pkgdir"/usr/bin/lfs
}

sha512sums="
46d729691586e1391787488f431cece0103098b2b83efd8aaa112385517b1c7138889173087c9293b376ab1155db065c05b590a019a172e2888e4b7857612926  lfs-2.5.0.tar.gz
"
